<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>商店</title>
<%@ include file="/common/include.jsp"%>
<link href="/summer/template/admin/css/list.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/summer/template/admin/js/list.js"></script>
<meta name="Author" content="Summer++ Team" />
<meta name="Copyright" content="SUMMER" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
</head>
<body class="list">

<div class="msgbox">
	请双击选择一条记录!
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="search_bar">
	<tr>
		<td width="350">
			<jsp:include page="/include/find.jsp">
				<jsp:param name="action" value="/crm/customer/account/account.do"/>
				<jsp:param name="method" value="select"/>
			</jsp:include>
		</td>
		<td>&nbsp;</td>
	</tr>
</table>
<%
	List list = (List) request.getAttribute(Const.LIST);
	ListGridData data = new ListGridData(SessionContainerUtil.getUser(request));
	data.setList(list);
	data.setEntityClass(Account.class);
	request.setAttribute("GridData",data.parseData());
%>
<script>
var mySearchData = <%= GridUtil.parseBeanValueForSearch(list,columns) %>;
function goSelect(index) {
	var data = [];
	for(var i=0;i<mySearchData.length;i++) {
		var temp = mySearchData[i];
		data[data.length] = temp[index];
	}
	window.parent.<%=func%>(data);
}
</script>
<script>
var myPK = <%= GridUtil.parseBeanValue(list,"id") %>;
var SELECT_ID = "";
function GridSelectedRowsChanged(value) {
	SELECT_ID = "";
	for(var i=0;i<value.length;i++) {
		var temp = value[i];
		if(i == 0)
			SELECT_ID = myPK[temp];
		else
			SELECT_ID = SELECT_ID+","+myPK[temp];
	}
}
function GridRowDoubleClicked(value) {
	SELECT_ID = myPK[value];
	goSelect(value);
}
</script>
<jsp:include page="/include/grid.jsp" />
<jsp:include page="/include/pagejump.jsp" />
<script>
setMultipleSelection(false);
</script>
</body>
</html>
